<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/css/admin.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="/css/menu/fg.menu.css" media="screen" rel="stylesheet" />
<link type="text/css" href="/css/menu/theme/ui.all.css" media="screen" rel="stylesheet" />
<script src="/js/admin.js"></script>
<script src="/js/admin/list.js"></script>
<script>


loadjs('menu');
$(document).ready(function(){
	$('#kw').def();
	kk();
	
	$.get(  $('#flat').attr('href'),
			function(data){ 
				$('#flat').css('visibility','visible');
				$('#flat').menu({ content: data, flyOut: true });
			}// grab content from another page	
	);
});
</script>

<style>
a{
	color:#000;
}
</style>

</head>

<body class="body" style="visibility:hidden;" onresize="kk()">
<div id="kk" class="p20">
<form class="p0 m0" method="post" action="__URL__" name="form" id="form">
<div class="f28 mb10 h70 title_box" style="line-height:70px;">
<img src="/img/adminiii/content.png" style="margin:0 10px -22px 10px;"/>内容 <span class="f16">&#65310; <?php echo urldecode(is_utf8($tag_title)==false? mb_convert_encoding($tag_title,'UTF-8',GBK):$tag_title); ?></span>
</div>


<div class="mb5">
<input type="button" class="button fl mr10" value="添加" onclick="javascript:window.location.href='__URL__/view/s1/{$s1}/s2/{$s2}?tag_title=<?php echo urlencode(is_utf8($tag_title)==false? mb_convert_encoding($tag_title,'UTF-8',GBK):$tag_title); ?> - <?php echo urlencode('添加');?>';"/>
<input type="button" class="button fl mr10" value="刷新" onclick="javascript:window.location.reload();"/>
<input type="button" class="button fl mr50" value="保存排序" onclick="javascript:op('pri')"/>
<select class="w100 fl mr5 k" id="act" onchange="javascript:eval($('#act').val())">
  <option value="" selected="selected" >批量操作</option>
  <option value="op('onoff','display,1')">显示</option>
  <option value="op('onoff','display,0')">隐藏</option>
  <option value="op('pri')">保存排序</option>
  <option value="op('del')">直接删除</option>
  <option value="op('clean')">清空</option>
</select>
<input type="button" class="button fl mr50" value="应用" onclick="javascript:eval($('#act').val())"/>
<input type="text" class="k w80 fl p1 mr5" id="kw" name="kw" value="{$kw}"/>
<input type="submit" class="button fl" value="筛选"/>

<div class="fr pagebar">
<php>include('adminiii/Lib/Block/pagebar.php');</php>
</div>

<div class="c"></div>
</div>

<div class="mb5 b o lh16" style="height:16px;color:#FF7400;">
<span id="AW">{$act_word|default=$_REQUEST['act_word']}</span>
<span id="load" style="display:none;">正在提交请求...<img src="/img/adminiii/loading.gif" width="16" height="9"/></span>
</div>

<div class="c"></div>
<div class="p3" style="border:1px #BBB solid; ">
<div class="fl w25"><input type="checkbox" name="chkall" id="chkall" value="{$v.id}"  onclick="javascript:checkall()"/></div>
<div class="fl lh18 w200 mr8"><a href="javascript:op('order','title')">标题</a></div>
<div class="fl lh18 w70"><a href="javascript:op('order','display')">显示?</a></div>
<div class="fl lh18 w50"><a href="javascript:op('order','pri')">排序</a></div>
<div class="fr lh18 w50 tc w100"><a href="javascript:op('order','posttime')">日期</a></div>
<div class="c"></div>
</div>

<volist name='list' id='v'>
<div class="content ck" onmouseover="javascript:bg(this);" id="c_{$v.id}">
<div class="fl w25 pt3"><input name="id[]" onclick="javascript:bg_select(this);" type="checkbox" value="{$v.id}" id="{$v.id}"/></div>
<div class="fl w200 mr8">{$v.title}&nbsp;<br />
<span name="menus" class="hide2 mr20 mt3" >
<a href="__URL__/view/id/{$v.id}?tag_title=<?php echo urlencode(is_utf8($tag_title)==false? mb_convert_encoding($tag_title,'UTF-8',GBK):$tag_title); ?> - <?php echo urlencode('编辑');?>">编辑</a> |
<a href="javascript:op('del','','{$v.id}')">删除</a>
</span>
</div>
<div class="fl w70">&nbsp;&nbsp;
<?php if ($v['display']==1){?><a href="javascript:op('onoff','display,0','<?=$v['id']?>')" class="b tc right">是</a> <?php }else{?>
<a href="javascript:op('onoff','display,1','<?=$v['id']?>')" class="b tc wrong">否</a><?php }?>
</div>
<div class="fl w50"><input name="pri[]" type="text" class="k w20 h15 tc mt5" value="{$v.pri}" title="数字越高优先显示" />
<input name="ids[]" type="hidden" value="{$v.id}" />
<input name="opri[]" type="hidden" value="{$v.pri}" /></div>
<div class="fr tc w100" style="line-height:16px;">{$v.posttime|date='Y-m-d H:i',###}</div>

<div class="c"></div>
</div>
</volist>

<?php if (count($list)==0): ?>
<div class="ck tc pt40 pb40">没有数据</div>
<?php endif; ?>


<div class="fr mt8 pb20 pagebar">
<php>include('adminiii/Lib/Block/pagebar.php');</php>
</div>

<div <?='class="hide"'?>>
<input type="text" name="act"	id="act"	value="" /> act<br />
<input type="text" name="act_word"	id="act_word"	value="{$act_word}" /> act_word<br />
<input type="text" name="value"	id="value"	value="" /> value<br />
<input type="text" name="fid"	id="fid" 	value="{$fid}" /> fid<br />
<input type="text" name="order"	id="order"	value="{$order}" /> order<br />
<input type="text" name="by"	id="by"		value="{$by}" /> by<br />
<input type="text" name="p"		id="p"		value="{$p}" /> p<br />
<input type="text" name="ps"	id="ps"		value="{$ps}" /> ps<br />

<input type="text" name="tag_title"		id="tag_title"		value="{$tag_title}" /> tag_title<br />

<input type="text" name="fw[s1]"	id="s1" 	value="{$s1}" /> s1<br />
<input type="text" name="fw[s2]"	id="s2" 	value="{$s2}" /> s2<br />
<input type="text" name="fw[s3]"	id="s3" 	value="{$s3}" /> s3<br />
<input type="text" name="fw[bs1]"	id="bs1" 	value="{$bs1}" /> bs1<br />
<input type="text" name="fw[bs2]"	id="bs2" 	value="{$bs2}" /> bs1<br />

<input type="text" name="word[word_bs]"		id="word_bs"		value="{$word_bs}" /> word<br />
<input type="text" name="word[word_s]"		id="word_s"		value="{$word_s}" /> word<br />
</div>

</form>
</div kk>
<script>rea();</script>
</body>
</html>